package com.eig.stat.controller;

import com.eig.common.vo.Result;
import com.eig.stat.service.StatCourseService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author ：liu666
 * @date ：
 * @description：
 * @modified By：
 * @version:
 */
@RestController
@RequestMapping("/stat/course")
public class StatCourseController {
    @Resource
    StatCourseService statCourseService;

    @PostMapping("/queryAllCourseRanking")
    public Result<List> queryAllCourseRanking(){
       return new Result<List>(2000,"查询成功",statCourseService.queryAllCourseRanking());
    }
}
